﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<PhotogalleryModel.PhotoRecentCommented>" %>
<%@ Import Namespace="PhotoGalleryEnteties" %>
<div class="Container">
        <a class="imgReference"  href ="<%=Url.Action( "Detail","Photo",new{id = Model.PhotoId  } ) %>">
            <div>
            <img src="<%=Url.Action( "GetPhoto","Photo",new{ photoType = PhotoType.ImageThumbnail ,id = Model.PhotoId   } )  %>" alt="" />
            </div>
        </a>
        <div class ="PropertyList">
            <div class="property ItemTitle">
                <div class="display-field"><%: Model.Title  %></div>
            </div>
            <div class="property">
                <div class="display-label">Album:</div>
                <div class="display-field"><span class="TextClip"><%= Model.AlbumTitle  %></span></div>
            </div>
        </div>
        <div class="clear"></div>
        <%=Html.ActionLink( "Navigate to photo","Detail","Photo",new{id=Model.PhotoId },new{@class="reference"}  ) %>
            

</div>

